package com.umeng.community.example;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.qianxx.draw.R;
import com.qianxx.base.BaseWebViewAty;
import com.qianxx.base.utils.MyBitmapUtil;
import com.umeng.community.example.bean.NewInfo;

/**
 * Created by zhangbingyong on 16/5/13.
 */
public class NewInfoDetailAty extends BaseWebViewAty{
    NewInfo newInfo;
    @Override
    protected void onCreate(Bundle arg0) {
        newInfo = (NewInfo) getIntent().getSerializableExtra("newInfo");
        html = newInfo.getContent();
        super.onCreate(arg0);
        setContentView(R.layout.aty_userinfo);
        initWebView();
        loadWebData();
        showTitle("资讯详情");
        ((TextView)findViewById(R.id.name)).setText(newInfo.getName());
        MyBitmapUtil.getInstance(this).setBitmap(((ImageView)findViewById(R.id.newImg)),newInfo.getBannerImg());
    }
}
